<!--
  描述：故障现象列表页
  @author chengguang
  @since 2021/11/18 17:54
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>故障现象列表</title>
</head>
<body>

<div class="layui-fluid">

    <!--面包屑-->
    <blockquote class="layui-crumb">
        <a lay-href="/base/phenomenon/list.action" lay-text="故障现象管理" th:text="故障现象管理">故障现象管理</a>
    </blockquote>

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" class="layui-form" action="/base/phenomenon/list.action">
            <div class="layui-form" th:include="base/phenomenon/_query::query "></div>
        </form>

        <div class="layui-card-body">
            <div th:replace="base/phenomenon/_table::table"/>
            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group"
                         th:if="${#authPermit.checkPermit('/base/phenomenon/updateStatus.action')}">
                        <button class="layui-btn layui-btn-sm" lay-event="start">启用</button>
                        <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="stop">停用
                        </button>
                    </div>
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/base/phenomenon/addEditView.action')}">
                            <a lay-href="/base/phenomenon/addEditView.action"
                               class="layui-btn layui-btn-sm layui-btn-primary"
                               lay-text="新增故障现象" text="新增故障现象" lay-event="add">+新增</a>
                        </zmn>
                    </div>
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/base/phenomenon/importExcel.action')}">
                            <a class="layui-btn layui-btn-sm layui-btn-primary" th:lay-text="导入"
                               th:lay-href="|/base/phenomenon/importExcel.action|">
                                <i class="layui-icon"></i>
                                导入
                            </a>
                        </zmn>
                    </div>
                </div>
            </script>
        </div>

    </div>
</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]],
        items: [[${items}]]
    };
    layui.config({
        version: 2021301111,
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        plat_phenomenon_list: "base/phenomenon/zmn.plat.phenomenon.list",
    }).use(['index', 'plat_phenomenon_list']);

</script>
</body>
</html>